package cn.lili.modules.share.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.share.fallback.ShareRegisterFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 分享注册Client
 */
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.FY_SHARE_SERVICE, contextId = "fy-share-service", fallback = ShareRegisterFallback.class)
public interface ShareRegisterClient {


    /**
     * 更新Appuser里的首次购买标识
     * @param openid
     * @return
     */
    @PostMapping("/feign/share/updateAppUserIsTureByOpenId")
    int updateAppUserIsTureByOpenId(@RequestParam String openid);
}
